#ifndef INFOVIEW_H
#define INFOVIEW_H

#include <views/abstractView.h>
#include <functionalnetwork.h>
#include <string>
#include <QVector>
#include <vtkScalarBarActor.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkTextProperty.h>

namespace Ui {
    class InfoView;
}

bool correlationLessThan(AnatomicalLink *link1, AnatomicalLink *link2);

class InfoView : public AbstractView {
    Q_OBJECT

private slots:
	 void resizeEvent(QResizeEvent *ev);

public:
    InfoView(QWidget *parent = 0);
    ~InfoView();
    void updateView();
    virtual void setNetwork(FunctionalNetwork *netw);

protected:
    void changeEvent(QEvent *e);

private:
	void createColorMap();

	Ui::InfoView *ui;
	//QwtColorMap *map;
	vtkScalarBarActor *scBar;
	vtkRenderer *renderer;
};

#endif